package com.lwj.mapper.configuration;

import com.lwj.dto.configuration.UserRoleListDto;
import com.lwj.model.configuration.UserRole;
import com.lwj.model.configuration.UserRoleKey;
import com.lwj.vo.configuration.UserPermissionVo;
import com.lwj.vo.configuration.UserRoleVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRoleMapper {
    int deleteByPrimaryKey(UserRoleKey key);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(UserRoleKey key);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);

    List<UserRoleVo> getUserByRole(UserRoleListDto dto);

    List<UserPermissionVo> selectUserPermission(@Param("empId") String empId,@Param("permissionCode") String permissionCode);
}
